<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MessageInbox>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Base"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    MessageInboxDetails
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        MessageInboxDetails</h2>
    <fieldset>
        <legend>Message</legend>
        <%
            if (Model.UserFrom != null)
            {%>
        From:
        <%=Html.Encode(Model.UserFrom.NickName)%><br />
        <%
            }
            else
            {
        %>
        From: Team Messsage
        <%
            }%>
        Title:
        <%= Html.Encode(Model.Title)%><br />
        Message:
        <div>
            <%= Model.MessageContent %>
        </div>
        <%= Html.Encode(String.Format("{0:d}", Model.DateSent))%>
    </fieldset>
</asp:Content>
